package com.danger.View.Adapter;

import android.content.Context;
import android.widget.BaseAdapter;

import java.util.List;

/**
 * Created by danger on 2016/4/9.
 */
public abstract class SSAdapter<T> extends BaseAdapter {

    private List<T> list;
    private Context context;

    public SSAdapter(List<T> list, Context context) {
        this.list = list;
        this.context = context;
    }

    @Override
    public int getCount() {
        return list.size();
    }

    @Override
    public Object getItem(int position) {
        return list.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }
}